<template>
  <div>
    <div class="make">
      <h2>
        大厅<span>({{ makes.tableType }})</span>
      </h2>
      <p>
        预定时间: <span>{{ makes.commitTime }}</span>
      </p>
      <p>
        就餐人数: <span>{{ makes.number }}</span>
      </p>
      <div class="confirm">{{ makes.orderStatu }}</div>
      <div class="skip" @click="toPay(makes._id)">〉</div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: {
    makes: Object,
  },
  mounted() {
    console.log(this.makes);
  },
  methods: {
    toPay(id) {
      this.$router.push({
        name: "makesPay",
        params: { id },
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.make {
  margin-top: 10px;
  padding: 15px;
  position: relative;
  .skip {
    font-size: 25px;
    color: #3333;
    position: absolute;
    right: 1px;
    top: 43px;
  }

  h2 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: normal;
  }
  p {
    margin-top: 5px;
    font-size: 14px;
    color: #a4a4a4;
  }
  .confirm {
    width: 70px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    font-size: 14px;
    background: white;
    border: 1px solid gray;
    border-radius: 20px;
    color: #333333;
    position: absolute;
    right: 40px;
    top: 45px;
  }
}
</style>